<?php


/**
 * @author Admin
 *
 *
 */
class ToggleButton extends ImageButton {
	//TODO - Insert your code here


	/**
	 *
	 */
	public  function __construct($id,$src,$url = '',$exec = '',$altgraphic = '',$class = '',$tooltip = '',$selected=false) {
		// Simply perform a switcheroo if selected
		$firstsrc = ($selected)?$altgraphic:$src;
		$secondsrc = ($selected)?$src:$altgraphic;
		parent::__construct($id,$firstsrc,$url,$exec,$secondsrc,$class,$tooltip);
		//TODO - Insert your code here
	}
}


?>